package cn.fx.framework.exception;

import cn.fx.framework.cons.ErrorCodeMessage;

/**
 * 调用一个类方法时（反射调用也是如此）出异常时，将抛出这个异常
 * @author ljh
 * @date 2020/5/8 10:07
 */
public class MethodInvokeException extends BaseException {
    private String invokeMethodName;
    private String invokeMethodArgs;
    public MethodInvokeException(int code, String msg) {
        super(code, msg);
    }

    public MethodInvokeException(String msg) {
        this(ErrorCodeMessage.METHOD_INVOKE_EXCEPTION_MSG.getCode(), msg);
    }

    public String getInvokeMethodName() {
        return invokeMethodName;
    }
    public void setInvokeMethodName(String invokeMethodName) {
        this.invokeMethodName = invokeMethodName;
    }

    public String getInvokeMethodArgs() {
        return invokeMethodArgs;
    }
    public void setInvokeMethodArgs(String invokeMethodArgs) {
        this.invokeMethodArgs = invokeMethodArgs;
    }
}
